﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Jzy.Model.ESecretary;
using Frame.Lib.Core.Base;

namespace Jzy.DAL.ESecretary
{
    public class UserChatDAL : BaseDAL
    {
        public List<UserChatInfo> GetList(int userID)
        {
            string sql = "select * from " + OTableName.UserChat + " where ReceiveID=@p0";
            List<UserChatInfo> list = dbOper.Query<UserChatInfo>(sql, userID);
            return list;
        }

        public void Delete(int userID)
        {
            string sql = "delete from " + OTableName.UserChat + " where ReceiveID=@p0";
            dbOper.RunSql(sql, userID);
        }
    }

}
